import axios from '@/util'; 

import type {
  zuiJinYueDuResultDto,
  biaoQianIcon,
  WenBenHeYinPinSheBeiCanShu,
  OssEntity,
  zuiJinPosition,
  dangQianBoFangJinDu,
  zuiJinYueDuEntity,
} from './typings';



/**
 * 检查所有待处理的记录状态 GET /api/zuiJinYueDuController/checkPendingRecords
 */
export async function get_api_zuijinyueducontroller_checkpendingrecords (
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'GET',
    url: `/api/zuiJinYueDuController/checkPendingRecords`,
    ...(options || {}),
  })
}

/**
 * 检查所有标题为空的记录 GET /api/zuiJinYueDuController/checkNullTitleRecords
 */
export async function get_api_zuijinyueducontroller_checknulltitlerecords (
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'GET',
    url: `/api/zuiJinYueDuController/checkNullTitleRecords`,
    ...(options || {}),
  })
}

/**
 * 获取最近阅读列表 GET /api/zuiJinYueDuController
 */
export async function get_api_zuijinyueducontroller (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
  },
  options?: Record<string, any>,
): Promise<zuiJinYueDuResultDto> {
  return axios({
    method: 'GET',
    url: `/api/zuiJinYueDuController`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/**
 * 最近阅读位置更改 POST /api/zuiJinYueDuController
 */
export async function post_api_zuijinyueducontroller (
  data: {
    /** id */
    id?: string;
    /**  */
    fengMianTu?: string;
    /** 创建时间返回前端使用 */
    chuangJianShiJian?: string;
    /** 创建时间用于数据库表的 */
    chuangJianShiJianOrigin?: string;
    /**  */
    biaoQianIcon?: biaoQianIcon__;
    /**  */
    biaoTi?: string;
    /**  */
    boFangCiShu?: number;
    /**  */
    keYong?: boolean;
    /**  */
    wenBenHeYinPinSheBeiCanShu?: WenBenHeYinPinSheBeiCanShu__;
    /**  */
    isAiStory?: boolean;
    /**  */
    email?: string;
    /**  */
    jieSuoJinE?: number;
    /**  */
    uuid?: string;
    /**  */
    geiAiDeCanShu?: any;
    /**  */
    ossFileArray?: OssEntity;
    /**  */
    geiAiZhuangTai?: string;
    /**  */
    isZuiAi?: boolean;
    /**  */
    zuiJinPosition?: zuiJinPosition__;
    /**  */
    status?: string;
    /** 是否提示过用户 */
    tiShiGuoYongHuLe?: boolean;
    /** 当前播放进度 */
    dangQianBoFangJinDu?: dangQianBoFangJinDu;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/zuiJinYueDuController`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 获取我的最爱列表 GET /api/zuiJinYueDuController/woDeZuiAi
 */
export async function get_api_zuijinyueducontroller_wodezuiai (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
  },
  options?: Record<string, any>,
): Promise<zuiJinYueDuResultDto> {
  return axios({
    method: 'GET',
    url: `/api/zuiJinYueDuController/woDeZuiAi`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/**
 * 添加我的最爱 POST /api/zuiJinYueDuController/woDeZuiAi
 */
export async function post_api_zuijinyueducontroller_wodezuiai (
  data: {
    /** 小说ID */
    id?: string;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'POST',
    url: `/api/zuiJinYueDuController/woDeZuiAi`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 更新我的最爱中的小说 PUT /api/zuiJinYueDuController/woDeZuiAi/{bookId}
 */
export async function put_api_zuijinyueducontroller_wodezuiai__bookid_ (
  pathVars: {
    /**  */
    bookId: any;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'PUT',
    url: `/api/zuiJinYueDuController/woDeZuiAi/${pathVars.bookId}`,
    ...(options || {}),
  })
}

/**
 * 从我的最爱中移除小说 DELETE /api/zuiJinYueDuController/woDeZuiAi/{bookId}
 */
export async function delete_api_zuijinyueducontroller_wodezuiai__bookid_ (
  pathVars: {
    /**  */
    bookId: any;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'DELETE',
    url: `/api/zuiJinYueDuController/woDeZuiAi/${pathVars.bookId}`,
    ...(options || {}),
  })
}

/**
 * 获取未提示用户的阅读状态 GET /api/zuiJinYueDuController/getUserUnnotifiedReadingStatus
 */
export async function get_api_zuijinyueducontroller_getuserunnotifiedreadingstatus (
  params: {
    /** 显示页数 */
    page: any;
    /** 每页显示条数 */
    size: any;
  },
  options?: Record<string, any>,
): Promise<zuiJinYueDuEntity> {
  return axios({
    method: 'GET',
    url: `/api/zuiJinYueDuController/getUserUnnotifiedReadingStatus`,
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/**
 * 批量修改提示过用户的状态 PUT /api/zuiJinYueDuController/batchUpdateReadingStatus
 */
export async function put_api_zuijinyueducontroller_batchupdatereadingstatus (
  data: {
    /**  */
    ids?: string__;
  },
  options?: Record<string, any>,
): Promise<zuiJinYueDuEntity> {
  return axios({
    method: 'PUT',
    url: `/api/zuiJinYueDuController/batchUpdateReadingStatus`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}

/**
 * 修改最近阅读 PUT /api/zuiJinYueDuController/xiuGaiZuiJinYueDu/{id}
 */
export async function put_api_zuijinyueducontroller_xiugaizuijinyuedu__id_ (
  pathVars: {
    /**  */
    id: any;
  },
  data: {
    /** id */
    id?: string;
    /**  */
    fengMianTu?: string;
    /** 创建时间返回前端使用 */
    chuangJianShiJian?: string;
    /** 创建时间用于数据库表的 */
    chuangJianShiJianOrigin?: string;
    /**  */
    biaoQianIcon?: biaoQianIcon__;
    /**  */
    biaoTi?: string;
    /**  */
    boFangCiShu?: number;
    /**  */
    keYong?: boolean;
    /**  */
    wenBenHeYinPinSheBeiCanShu?: WenBenHeYinPinSheBeiCanShu__;
    /**  */
    isAiStory?: boolean;
    /**  */
    email?: string;
    /**  */
    jieSuoJinE?: number;
    /**  */
    uuid?: string;
    /**  */
    geiAiDeCanShu?: any;
    /**  */
    ossFileArray?: OssEntity;
    /**  */
    geiAiZhuangTai?: string;
    /**  */
    isZuiAi?: boolean;
    /**  */
    zuiJinPosition?: zuiJinPosition__;
    /**  */
    status?: string;
    /** 是否提示过用户 */
    tiShiGuoYongHuLe?: boolean;
    /** 当前播放进度 */
    dangQianBoFangJinDu?: dangQianBoFangJinDu;
  },
  options?: Record<string, any>,
): Promise<any> {
  return axios({
    method: 'PUT',
    url: `/api/zuiJinYueDuController/xiuGaiZuiJinYueDu/${pathVars.id}`,
    data: {
      ...data,
    },
    ...(options || {}),
  })
}
